package com.zijie.rbac.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zijie.rbac.model.UserGroup;

import java.util.List;

public interface UserGroupService {
    //查找
    Page<UserGroup> findAll(Page<UserGroup> page, UserGroup usb);
    //新增
    int add(UserGroup userGroup);
    //修改
    int update(UserGroup userGroup);
    //删除
    int deleteById(Integer id);
    //删除多个
    int deleteByIds(List<Integer> ids);

    boolean assignAdminToGroup(Long adminId, Long userGroupId);

    void assignRole(Long userGroupId, Long roleId);
}
